<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 2016/6/8
 * Time: 18:50
 */
namespace common\entities\common;

use common\entities\ConfigEntity;
use Yii;

/**
 * This is the model class for table "myscrm_baseproduct".
 *
 * @property string $BaseProductId
 * @property string $BaseProductCode
 * @property string $BaseProductName
 * @property integer $BaseProductType
 * @property string $Description
 */
class MyscrmBaseproductEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_baseproduct';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['BaseProductId', 'BaseProductName', 'BaseProductType'], 'required'],
            [['BaseProductType'], 'integer'],
            [['BaseProductId'], 'string', 'max' => 36],
            [['BaseProductCode', 'BaseProductName'], 'string', 'max' => 128],
            [['Description'], 'string', 'max' => 512]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'BaseProductId' => 'Base Product ID',
            'BaseProductCode' => 'Base Product Code',
            'BaseProductName' => 'Base Product Name',
            'BaseProductType' => 'Base Product Type',
            'Description' => 'Description',
        ];
    }
}